﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:InfoStrat.VE.NUI"
                    xmlns:util="clr-namespace:InfoStrat.VE.NUI.Utilities"
                    xmlns:s="http://schemas.microsoft.com/surface/2008"
                    xmlns:Interop="clr-namespace:System.Windows.Interop;assembly=PresentationCore">
    
    <Style TargetType="{x:Type local:SurfaceVEPushPin}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:SurfaceVEPushPin}">
                        <StackPanel>                       
                        <Border Background="{TemplateBinding PushPinBackground}"
                                    CornerRadius="6"
                                    Padding="0"
                                    Margin="0"
                                    HorizontalAlignment="Center"
                                    SnapsToDevicePixels="True"
                                    Height="40"
                                    Width="40">
                                <s:SurfaceButton Name="PART_button"
                                                 Background="{TemplateBinding PushPinBackground}"
                                                 BorderThickness="0"                                                 
                                                 Margin="-2"
                                                 FontSize="12"
                                                 VerticalAlignment="Top"
                                                 HorizontalAlignment="Center" IsEnabled="True" Opacity="0">                                    
                                </s:SurfaceButton>                            
                        </Border>
                        </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
</ResourceDictionary>